//
//  LKAvPlayerBottomCell.m
//  YLHelper
//
//  Created by she1323 on 2018/5/8.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKAvPlayerBottomCell.h"

@interface LKAvPlayerBottomCell()

@property (weak, nonatomic) IBOutlet UILabel *paperTypeLabel;
@property (weak, nonatomic) IBOutlet UILabel *paperNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *paperCountLabel;

@property (weak, nonatomic) IBOutlet UILabel *createPaperLabel;
@end

@implementation LKAvPlayerBottomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = cellHeaderBgColor;
    self.prictiseBtn.layer.borderColor = blueDefault.CGColor;
    self.prictiseBtn.layer.borderWidth = 1;
    self.prictiseBtn.layer.cornerRadius = 2;
    self.prictiseBtn.layer.masksToBounds = YES;
    // Initialization code
}
-(void)setModel:(LKVideoModel *)model{
    _model = model;
    NSDictionary *paperModelDic = _model.videoExamination[0].examinationPaper;
    LKVideoExaminationDetailModel *paperModel = [LKVideoExaminationDetailModel modelWithDictionary:paperModelDic];
    self.paperTypeLabel.text = [NSString stringWithFormat:@"%@",paperModel.examinationTypeText];
    self.paperCountLabel.text = [NSString stringWithFormat:@"题数：%@",paperModel.questionCount];
    self.paperNameLabel.text = [NSString stringWithFormat:@"试卷名称：%@",paperModel.examinationPaperName];
    self.createPaperLabel.text = [NSString stringWithFormat:@"出题人：%@",paperModel.creationName];;
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
